<extend file='../master'/>
<block name="content">
<div class="well">
    <a href="{{site_url('site/newsPost')}}" class="btn btn-success">新增图文素材</a>
</div>
<br>
<div class="panel panel-default">
	<div class="panel-body">
	<foreach from="$data" value="$v">
		<div class="col-md-4">
		    <div class="thumbnail">
		    <?php $v['content'] = json_decode($v['content'],true);?>
		    <foreach from="$v['content']" value="$d">
		      <img src="{{__ROOT__.'/'.$d[0]['thumb']}}" alt="...">
		      <div class="caption">
		        <h3>{{$d[0]['title']}}</h3>
		        <p>{{$d[0]['digest']}}</p>
		      </div>
		    </foreach>
		        <a href="{{site_url('site/sendall','',['id'=>$d['id']])}}" class="btn btn-success" role="button">群发</a>
		        <a href="#" class="btn btn-danger" role="button">删除</a>
		    </div>
		  </div>
	</foreach>


	</div>
</div>
</block>
